<?php $this->load->view('qt/header'); ?>


<!--  PAPER WRAP -->
<div class="wrap-fluid">
    <div class="container-fluid paper-wrap bevel tlbr">

        <!-- CONTENT -->
        <!--TITLE -->
        <div class="row">
            <div id="paper-top">
                <div class="col-sm-12">
                    <h2 class="tittle-content-header">
                        <i class="qt-network"></i>
                        <span id="title-header">
                            <?php echo (isset($this->title_header)) ? $this->title_header : 'DÁNH SÁCH TRÙNG';?>
                        </span>
                    </h2>
                </div>
            </div>
        </div>
        <!--/ TITLE -->
        <ul id="breadcrumb">
            <li><span class="entypo-home"></span></li>
            <li><i class="fa fa-lg fa-angle-right"></i></li>
            <li><a href="#main">Trang chủ</a></li>
        </ul>
        <div class="content-wrap"  style="margin-top: 10px;">
        
 <section class="vbox">
	<section class="scrollable padder">
		<section class="row m-b-md">
			<div class="col-sm-12">
				<h3 class="m-b-xs text-black">Danh sách khách hàng bị trùng lập</h3>
			</div>
		</section>
	<section class="scrollable padder">
		<div class="row">
			<div class="col-md-12">
			<label style="width: 100%; font-size: 16px; font-weight: normal; margin-bottom: 10px;">
            <li class="qt-search" style="float: left; list-style: none; padding:0px 5px;"></li>Tìm theo: </label>
				<form class="form-inline m-b-lg" method="GET" action="<?php echo base_url()?>conflict/view/">
					<div class="form-group">
						<input type="text" name="where" placeholder="tên/địa chỉ/số điện thoại" class="form-control" value="<?php echo @$_REQUEST["where"]; ?>">
					</div>				
					<div class="form-group">
						<input type="submit" class="btn btn-primary" value="Tìm kiếm">
					</div>

				</form>

				<section class="panel b-a" style="margin-top: 20px;">
					
					<table class="table table-striped table-condensed table-hover table-bordered" id="list_company">
						<thead style="background: #bcbcbc;">
							<tr>
								<th style="color: #ffffff;"><li class="qt-group" style="float: left;list-style: none; padding:3px 5px; color: #ffffff;"></li>Tên khách hàng</th>
								<th style="color: #ffffff;"><li class="qt-home" style="float: left;list-style: none; padding:3px 5px; color: #ffffff;"></li>Địa chỉ</th>
								<th style="color: #ffffff;"><li class="qt-phone" style="float: left;list-style: none; padding:3px 5px; color: #ffffff;"></li>Điện thoại</th>
								<th style="color: #ffffff;"><li class="qt-loai" style="float: left;list-style: none; padding:3px 5px; color: #ffffff;"></li>Loại</th>
								<th style="color: #ffffff;"><li class="qt-thaotac" style="float: left;list-style: none; padding:3px 5px; color: #ffffff;"></li>Thao Tác</th>
							</tr>
						</thead>
						<tbody>
							<?php 
							foreach($this->data["result"] as $num=>$val){
						
								
								?>
								<tr>
								<td><?php echo $val["cust_first_name"]." ".$val["cust_last_name"]; ?></td>
									<td><?php echo $val["cust_address"]?></td>
									<td><?php echo $val["cust_phone"]?></td>
									<td><?php echo @$val["type"]?></td>
									<td>
										<a href="<?php echo base_url()?>conflict/review?id=<?php echo $val["cust_id"]."&type=".@$val["type"];?>" class="btn btn-sm btn-default"><i class="fa fa-plus"></i> Xử Lý</a>
									</td>
								</tr>
								<?php
							}
							?>
							

						</tbody>
						<tfoot>
							<tr>
								<td colspan="5" class="text-center">
									<ul class="pagination pagination">
									<?php 
										$config['base_url'] = base_url().'conflict/view';
										$config['total_rows'] = $this->data["count_page"];
										$config['per_page'] = 10; 
										$config['full_tag_open'] = '<li>';
										$config['full_tag_close'] = '</li>';
										$config['last_tag_open'] = '<li>';
										$config['last_tag_close'] = '</li>';
										$config['next_tag_open'] = '<li>';
										$config['next_tag_close'] = '</li>';
										$config['prev_tag_open'] = '<li>';
										$config['prev_tag_close'] = '</li>';
										$config['cur_tag_open'] = '<li><a><b>';
										$config['cur_tag_close'] = '</b></a></li>';
										$config['num_tag_open'] = '<li>';
										$config['num_tag_close'] = '</li>';
										$this->pagination->initialize($config); 
										echo $this->pagination->create_links();
									?>
										
									</ul>
								</td>
							</tr>
						</tfoot>
					</table>
				</section>
			</div>
		</div>
	</section>
	</section>
</section>       
   
        
</div>
<div class="content-wrap" id="show-content2"></div>
<div class="content-wrap"> 
<?php $this->load->view('qt/footer'); ?>


